package com.llg.util.formula;

import javassist.CannotCompileException;
import javassist.NotFoundException;

public abstract class TestFormula extends Formula {

    public static TestFormula create(String str)
            throws NotFoundException, CannotCompileException, IllegalAccessException,
            InstantiationException {
        return Formula.create(TestFormula.class, "public int compute(int capacity)", str);
    }

    public abstract int compute(int capacity);

}
